let Koa = require("koa");
let Router = require("koa-router");
let fs = require("fs");
let views = require("koa-views");
const { append } = require("koa/lib/response");
const context = require("koa/lib/context");
let app = new Koa();
let router = new Router();
app.use(views(__dirname + "/views"));
router.get("",async ctx => {
    await ctx.render("/index2.html")
    ctx.body = {
        info:"我是4000的数据"
    }
})

app.use(router.routes());
app.listen(4000)